import re

lst = re.findall("\d+","你好111,我是35")

print(lst)

it = re.finditer("\d+","你好111,我是35")

for i in it:
    print( i.group() )

s = re.search("\d+","你好111,我是35")#找到一个结果就返回
print(s.group())

s = re.match("\d+","你好111,我是35")#从头开始匹配
print(s)

#预加载正则表达式

obj = re.compile("\d+")

s = obj.finditer("hahah123,asdlkaklsdj555")

print(s)